package com.his.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 医生基本信息表
 * @TableName dzm_his_doctor
 */
public class DzmHisDoctor implements Serializable {
    /**
     * 用户id
     */
    @TableId(value = "id",type = IdType.INPUT)
    private Integer id;

    /**
     * 用户个人资料真实姓名
     */
    private String trueName;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 头像
     */
    private String picture;

    /**
     * 性别 0,空1:男  2:女
     */
    private Integer sex;

    /**
     * 学历 1：专科  2：本科  3：研究生  4：博士  5：博士后
     */
    private Integer background;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 邮箱
     */
    private String mailbox;

    /**
     * 擅长
     */
    private String strong;

    /**
     * 荣誉
     */
    private String honor;

    /**
     * 简介
     */
    private String introduction;

    /**
     * 注册时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    /**
     * 用户表userid
     */
    private Integer uid;

    /**
     * 咨询价格
     */
    private BigDecimal askPrice;

    /**
     * 科室关联表
     */
    private List<DzmHisDepartment> dzmHisDepartmentList;

    /**
     * 用户关联表
     */
    private List<DzmHisMember> dzmHisMemberList;

    /**
     * 字典关联表
     */
    private List<DzmHisDictionary> dzmHisDictionaryList;

    private static final long serialVersionUID = 1L;



    /**
     * 用户id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 用户id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 用户个人资料真实姓名
     */
    public String getTrueName() {
        return trueName;
    }

    /**
     * 用户个人资料真实姓名
     */
    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    /**
     * 年龄
     */
    public Integer getAge() {
        return age;
    }

    /**
     * 年龄
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     * 头像
     */
    public String getPicture() {
        return picture;
    }

    /**
     * 头像
     */
    public void setPicture(String picture) {
        this.picture = picture;
    }


    /**
     * 手机号
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 手机号
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 邮箱
     */
    public String getMailbox() {
        return mailbox;
    }

    /**
     * 邮箱
     */
    public void setMailbox(String mailbox) {
        this.mailbox = mailbox;
    }

    /**
     * 擅长
     */
    public String getStrong() {
        return strong;
    }

    /**
     * 擅长
     */
    public void setStrong(String strong) {
        this.strong = strong;
    }

    /**
     * 荣誉
     */
    public String getHonor() {
        return honor;
    }

    /**
     * 荣誉
     */
    public void setHonor(String honor) {
        this.honor = honor;
    }

    /**
     * 简介
     */
    public String getIntroduction() {
        return introduction;
    }

    /**
     * 简介
     */
    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getBackground() {
        return background;
    }

    public void setBackground(Integer background) {
        this.background = background;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 用户表userid
     */
    public Integer getUid() {
        return uid;
    }

    /**
     * 用户表userid
     */
    public void setUid(Integer uid) {
        this.uid = uid;
    }

    /**
     * 咨询价格
     */
    public BigDecimal getAskPrice() {
        return askPrice;
    }

    /**
     * 咨询价格
     */
    public void setAskPrice(BigDecimal askPrice) {
        this.askPrice = askPrice;
    }

    public List<DzmHisDepartment> getDzmHisDepartmentList() {
        return dzmHisDepartmentList;
    }

    public void setDzmHisDepartmentList(List<DzmHisDepartment> dzmHisDepartmentList) {
        this.dzmHisDepartmentList = dzmHisDepartmentList;
    }

    public List<DzmHisMember> getDzmHisMemberList() {
        return dzmHisMemberList;
    }

    public void setDzmHisMemberList(List<DzmHisMember> dzmHisMemberList) {
        this.dzmHisMemberList = dzmHisMemberList;
    }

    public List<DzmHisDictionary> getDzmHisDictionaryList() {
        return dzmHisDictionaryList;
    }

    public void setDzmHisDictionaryList(List<DzmHisDictionary> dzmHisDictionaryList) {
        this.dzmHisDictionaryList = dzmHisDictionaryList;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisDoctor other = (DzmHisDoctor) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getTrueName() == null ? other.getTrueName() == null : this.getTrueName().equals(other.getTrueName()))
                && (this.getAge() == null ? other.getAge() == null : this.getAge().equals(other.getAge()))
                && (this.getPicture() == null ? other.getPicture() == null : this.getPicture().equals(other.getPicture()))
                && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
                && (this.getBackground() == null ? other.getBackground() == null : this.getBackground().equals(other.getBackground()))
                && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
                && (this.getMailbox() == null ? other.getMailbox() == null : this.getMailbox().equals(other.getMailbox()))
                && (this.getStrong() == null ? other.getStrong() == null : this.getStrong().equals(other.getStrong()))
                && (this.getHonor() == null ? other.getHonor() == null : this.getHonor().equals(other.getHonor()))
                && (this.getIntroduction() == null ? other.getIntroduction() == null : this.getIntroduction().equals(other.getIntroduction()))
                && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
                && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
                && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
                && (this.getAskPrice() == null ? other.getAskPrice() == null : this.getAskPrice().equals(other.getAskPrice()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTrueName() == null) ? 0 : getTrueName().hashCode());
        result = prime * result + ((getAge() == null) ? 0 : getAge().hashCode());
        result = prime * result + ((getPicture() == null) ? 0 : getPicture().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getBackground() == null) ? 0 : getBackground().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getMailbox() == null) ? 0 : getMailbox().hashCode());
        result = prime * result + ((getStrong() == null) ? 0 : getStrong().hashCode());
        result = prime * result + ((getHonor() == null) ? 0 : getHonor().hashCode());
        result = prime * result + ((getIntroduction() == null) ? 0 : getIntroduction().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getAskPrice() == null) ? 0 : getAskPrice().hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "DzmHisDoctor{" +
                "id=" + id +
                ", trueName='" + trueName + '\'' +
                ", age=" + age +
                ", picture='" + picture + '\'' +
                ", sex=" + sex +
                ", background=" + background +
                ", phone='" + phone + '\'' +
                ", mailbox='" + mailbox + '\'' +
                ", strong='" + strong + '\'' +
                ", honor='" + honor + '\'' +
                ", introduction='" + introduction + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", uid=" + uid +
                ", askPrice=" + askPrice +
                ", dzmHisDepartmentList=" + dzmHisDepartmentList +
                ", dzmHisMemberList=" + dzmHisMemberList +
                ", dzmHisDictionaryList=" + dzmHisDictionaryList +
                '}';
    }
}